package xxl.robotlegs.extensions.directcommandmap 
{
	import xxl.robotlegs.extensions.directcommandmap.api.IDirectCommandMap;
	import xxl.robotlegs.extensions.directcommandmap.impl.DirectCommandMap;
	import xxl.robotlegs.framework.api.IContext;
	import xxl.robotlegs.framework.api.IExtension;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class DirectCommandMapExtension implements IExtension 
	{
		
		public function DirectCommandMapExtension() 
		{
			
		}
		
		public function toString():String
		{
			return "DirectCommandMapExtension（简介：提供一个可以执有或者释放Command的DirectCommandMap，方便实现Command的execute内还含有回调的情况。必要依赖：CommandCenterExtension）";
		}
		
		/* INTERFACE xxl.robotlegs.framework.api.IExtension */
		
		public function extend(context:IContext):void 
		{
			context.injector.map(IDirectCommandMap).toType(DirectCommandMap);
		}
		
	}

}